package com.kinghood.authoritycenter.controller.oauth;

import com.kinghood.authoritycenter.service.IThirdPartService;
import com.kinghood.infrastructure.model.KingHoodResponseVO;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * description
 *
 * @author zhangFanJun
 * @date 2023-12-27 15:25
 **/
@Slf4j
@RequiredArgsConstructor
@RequestMapping("/thirdPart")
@RestController
public class ThirdPartController {

    private final IThirdPartService thirdPartService;

    /**
     * 华为云签名
     *
     * @return 签名
     * @author zfj
     * @date 2023/12/27
     */
    @PostMapping("/obs/getSign")
    public KingHoodResponseVO<String> queryTypeList() {

        return KingHoodResponseVO.success(thirdPartService.getObsSign(null));
    }
}
